home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
wg_lib
/
varfrm.frm
< prev
next >
Wrap
Text File
|
1995-09-06
|
2KB
|
78 lines
VERSION 2.00
Begin Form VarFrm
BackColor = &H00C0C0C0&
Caption = "VARSEG/VARPTR"
ClientHeight = 1605
ClientLeft = 1260
ClientTop = 2265
ClientWidth = 3390
Height = 2010
Left = 1200
LinkMode = 1 'Source
LinkTopic = "Form2"
ScaleHeight = 1605
ScaleWidth = 3390
Top = 1920
Width = 3510
Begin Label VP
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 1200
TabIndex = 1
Top = 870
Width = 1785
End
Begin Label Label4
BackColor = &H00C0C0C0&
Caption = "Offset:"
Height = 195
Left = 450
TabIndex = 3
Top = 900
Width = 645
End
Begin Label Label3
BackColor = &H00C0C0C0&
Caption = "Segment:"
Height = 240
Left = 225
TabIndex = 2
Top = 390
Width = 855
End
Begin Label VS
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 300
Left = 1200
TabIndex = 0
Top = 300
Width = 1785
End
End
defint a-z
Sub Form_Load ()
VS.caption = " Hex: " + Right$("0000" + Hex$(VarSeg(VarFrm)), 4)
VP.caption = " Hex: " + Right$("0000" + Hex$(VarPtr(VarFrm)), 4)
End Sub
Sub Form_Paint ()
ConvexFrm VarFrm, 4
ConcaveCtl VS, 3
ConcaveCtl VP, 3
End Sub